if goal>=big*5:
    remainder=goal-big*5
  else:
     remainder=goal%5
  if remainder<=small:
    return remainder
  return-1